.class public Lcn/sharesdk/onekeyshare/PlatformGridView;
.super Landroid/widget/LinearLayout;
.source "PlatformGridView.java"

# interfaces
.implements Landroid/os/Handler$Callback;
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcn/sharesdk/onekeyshare/PlatformGridView$GridView;,
        Lcn/sharesdk/onekeyshare/PlatformGridView$PlatformAdapter;
    }
.end annotation


# static fields
.field private static final MSG_PLATFORM_LIST_GOT:I = 0x1


# instance fields
.field private COLUMN_PER_LINE:I

.field private LINE_PER_PAGE:I

.field private PAGE_SIZE:I

.field private customers:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/onekeyshare/CustomerLogo;",
            ">;"
        }
    .end annotation
.end field

.field private grayPoint:Landroid/graphics/Bitmap;

.field private hiddenPlatforms:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

.field private parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

.field private platformList:[Lcn/sharesdk/framework/Platform;

.field private points:[Landroid/widget/ImageView;

.field private silent:Z

.field private whitePoint:Landroid/graphics/Bitmap;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 2
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 72
    invoke-direct {p0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 73
    invoke-direct {p0, p1}, Lcn/sharesdk/onekeyshare/PlatformGridView;->init(Landroid/content/Context;)V

    .line 74
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 77
    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 78
    invoke-direct {p0, p1}, Lcn/sharesdk/onekeyshare/PlatformGridView;->init(Landroid/content/Context;)V

    .line 79
    return-void
.end method

.method static synthetic access$000(Lcn/sharesdk/onekeyshare/PlatformGridView;)[Lcn/sharesdk/framework/Platform;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->platformList:[Lcn/sharesdk/framework/Platform;

    return-object v0
.end method

.method static synthetic access$002(Lcn/sharesdk/onekeyshare/PlatformGridView;[Lcn/sharesdk/framework/Platform;)[Lcn/sharesdk/framework/Platform;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;
    .param p1, "x1"    # [Lcn/sharesdk/framework/Platform;

    .prologue
    .line 46
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->platformList:[Lcn/sharesdk/framework/Platform;

    return-object p1
.end method

.method static synthetic access$100(Lcn/sharesdk/onekeyshare/PlatformGridView;)Ljava/util/HashMap;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->hiddenPlatforms:Ljava/util/HashMap;

    return-object v0
.end method

.method static synthetic access$200(Lcn/sharesdk/onekeyshare/PlatformGridView;)Ljava/util/ArrayList;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->customers:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$300(Lcn/sharesdk/onekeyshare/PlatformGridView;)I
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->PAGE_SIZE:I

    return v0
.end method

.method static synthetic access$400(Lcn/sharesdk/onekeyshare/PlatformGridView;)I
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    return v0
.end method

.method static synthetic access$500(Lcn/sharesdk/onekeyshare/PlatformGridView;)[Landroid/widget/ImageView;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic access$600(Lcn/sharesdk/onekeyshare/PlatformGridView;)Landroid/graphics/Bitmap;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->grayPoint:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method static synthetic access$700(Lcn/sharesdk/onekeyshare/PlatformGridView;)Landroid/graphics/Bitmap;
    .registers 2
    .param p0, "x0"    # Lcn/sharesdk/onekeyshare/PlatformGridView;

    .prologue
    .line 46
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->whitePoint:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method private calPageSize()V
    .registers 10

    .prologue
    const/4 v8, 0x3

    .line 103
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcn/sharesdk/framework/utils/R;->getScreenWidth(Landroid/content/Context;)I

    move-result v3

    int-to-float v1, v3

    .line 104
    .local v1, "scrW":F
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcn/sharesdk/framework/utils/R;->getScreenHeight(Landroid/content/Context;)I

    move-result v3

    int-to-float v0, v3

    .line 105
    .local v0, "scrH":F
    div-float v2, v1, v0

    .line 106
    .local v2, "whR":F
    float-to-double v4, v2

    const-wide v6, 0x3fe3333333333333L

    cmpg-double v3, v4, v6

    if-gez v3, :cond_2b

    .line 107
    iput v8, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    .line 108
    iput v8, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->LINE_PER_PAGE:I

    .line 124
    :goto_23
    iget v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    iget v4, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->LINE_PER_PAGE:I

    mul-int/2addr v3, v4

    iput v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->PAGE_SIZE:I

    .line 125
    return-void

    .line 109
    :cond_2b
    float-to-double v4, v2

    const-wide/high16 v6, 0x3fe8000000000000L

    cmpg-double v3, v4, v6

    if-gez v3, :cond_38

    .line 110
    iput v8, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    .line 111
    const/4 v3, 0x2

    iput v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->LINE_PER_PAGE:I

    goto :goto_23

    .line 113
    :cond_38
    const/4 v3, 0x1

    iput v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->LINE_PER_PAGE:I

    .line 114
    float-to-double v4, v2

    const-wide/high16 v6, 0x3ffc000000000000L

    cmpl-double v3, v4, v6

    if-ltz v3, :cond_46

    .line 115
    const/4 v3, 0x6

    iput v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    goto :goto_23

    .line 116
    :cond_46
    float-to-double v4, v2

    const-wide/high16 v6, 0x3ff8000000000000L

    cmpl-double v3, v4, v6

    if-ltz v3, :cond_51

    .line 117
    const/4 v3, 0x5

    iput v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    goto :goto_23

    .line 118
    :cond_51
    float-to-double v4, v2

    const-wide v6, 0x3ff4cccccccccccdL

    cmpl-double v3, v4, v6

    if-ltz v3, :cond_5f

    .line 119
    const/4 v3, 0x4

    iput v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    goto :goto_23

    .line 121
    :cond_5f
    iput v8, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->COLUMN_PER_LINE:I

    goto :goto_23
.end method

.method private disableOverScrollMode(Landroid/view/View;)V
    .registers 9
    .param p1, "view"    # Landroid/view/View;

    .prologue
    .line 262
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0x9

    if-ge v2, v3, :cond_7

    .line 273
    :goto_6
    return-void

    .line 266
    :cond_7
    :try_start_7
    const-class v2, Landroid/view/View;

    const-string v3, "setOverScrollMode"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Class;

    const/4 v5, 0x0

    sget-object v6, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;

    aput-object v6, v4, v5

    invoke-virtual {v2, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v0

    .line 268
    .local v0, "m":Ljava/lang/reflect/Method;
    const/4 v2, 0x1

    invoke-virtual {v0, v2}, Ljava/lang/reflect/Method;->setAccessible(Z)V

    .line 269
    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    const/4 v4, 0x2

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-virtual {v0, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_29
    .catch Ljava/lang/Throwable; {:try_start_7 .. :try_end_29} :catch_2a

    goto :goto_6

    .line 270
    .end local v0    # "m":Ljava/lang/reflect/Method;
    :catch_2a
    move-exception v1

    .line 271
    .local v1, "t":Ljava/lang/Throwable;
    invoke-virtual {v1}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_6
.end method

.method private init(Landroid/content/Context;)V
    .registers 6
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 82
    invoke-direct {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->calPageSize()V

    .line 83
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->setOrientation(I)V

    .line 85
    new-instance v0, Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-direct {v0, p1}, Lm/framework/ui/widget/viewpager/ViewPagerClassic;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    .line 86
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-direct {p0, v0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->disableOverScrollMode(Landroid/view/View;)V

    .line 87
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Lm/framework/ui/widget/viewpager/ViewPagerClassic;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 88
    iget-object v0, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-virtual {p0, v0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->addView(Landroid/view/View;)V

    .line 91
    new-instance v0, Lcn/sharesdk/onekeyshare/PlatformGridView$1;

    invoke-direct {v0, p0, p1}, Lcn/sharesdk/onekeyshare/PlatformGridView$1;-><init>(Lcn/sharesdk/onekeyshare/PlatformGridView;Landroid/content/Context;)V

    .line 99
    invoke-virtual {v0}, Lcn/sharesdk/onekeyshare/PlatformGridView$1;->start()V

    .line 100
    return-void
.end method


# virtual methods
.method public afterPlatformListGot()V
    .registers 16

    .prologue
    .line 139
    new-instance v0, Lcn/sharesdk/onekeyshare/PlatformGridView$PlatformAdapter;

    invoke-direct {v0, p0}, Lcn/sharesdk/onekeyshare/PlatformGridView$PlatformAdapter;-><init>(Lcn/sharesdk/onekeyshare/PlatformGridView;)V

    .line 140
    .local v0, "adapter":Lcn/sharesdk/onekeyshare/PlatformGridView$PlatformAdapter;
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-virtual {v13, v0}, Lm/framework/ui/widget/viewpager/ViewPagerClassic;->setAdapter(Lm/framework/ui/widget/viewpager/ViewPagerAdapter;)V

    .line 141
    const/4 v9, 0x0

    .line 142
    .local v9, "pageCount":I
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->platformList:[Lcn/sharesdk/framework/Platform;

    if-eqz v13, :cond_27

    .line 143
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->customers:Ljava/util/ArrayList;

    if-nez v13, :cond_31

    const/4 v3, 0x0

    .line 144
    .local v3, "cusSize":I
    :goto_14
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->platformList:[Lcn/sharesdk/framework/Platform;

    if-nez v13, :cond_38

    const/4 v10, 0x0

    .line 145
    .local v10, "platSize":I
    :goto_19
    add-int v12, v10, v3

    .line 146
    .local v12, "size":I
    iget v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->PAGE_SIZE:I

    div-int v9, v12, v13

    .line 147
    iget v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->PAGE_SIZE:I

    rem-int v13, v12, v13

    if-lez v13, :cond_27

    .line 148
    add-int/lit8 v9, v9, 0x1

    .line 151
    .end local v3    # "cusSize":I
    .end local v10    # "platSize":I
    .end local v12    # "size":I
    :cond_27
    new-array v13, v9, [Landroid/widget/ImageView;

    iput-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    .line 152
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    array-length v13, v13

    if-gtz v13, :cond_3c

    .line 186
    :goto_30
    return-void

    .line 143
    :cond_31
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->customers:Ljava/util/ArrayList;

    invoke-virtual {v13}, Ljava/util/ArrayList;->size()I

    move-result v3

    goto :goto_14

    .line 144
    .restart local v3    # "cusSize":I
    :cond_38
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->platformList:[Lcn/sharesdk/framework/Platform;

    array-length v10, v13

    goto :goto_19

    .line 156
    .end local v3    # "cusSize":I
    :cond_3c
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getContext()Landroid/content/Context;

    move-result-object v1

    .line 157
    .local v1, "context":Landroid/content/Context;
    new-instance v6, Landroid/widget/LinearLayout;

    invoke-direct {v6, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 159
    .local v6, "llPoints":Landroid/widget/LinearLayout;
    const/4 v13, 0x1

    if-le v9, v13, :cond_c5

    const/4 v13, 0x0

    :goto_49
    invoke-virtual {v6, v13}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 160
    new-instance v8, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v13, -0x2

    const/4 v14, -0x2

    invoke-direct {v8, v13, v14}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 162
    .local v8, "lpLl":Landroid/widget/LinearLayout$LayoutParams;
    const/4 v13, 0x1

    iput v13, v8, Landroid/widget/LinearLayout$LayoutParams;->gravity:I

    .line 163
    invoke-virtual {v6, v8}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 164
    invoke-virtual {p0, v6}, Lcn/sharesdk/onekeyshare/PlatformGridView;->addView(Landroid/view/View;)V

    .line 166
    const/4 v13, 0x5

    invoke-static {v1, v13}, Lcn/sharesdk/framework/utils/R;->dipToPx(Landroid/content/Context;I)I

    move-result v4

    .line 167
    .local v4, "dp_5":I
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getContext()Landroid/content/Context;

    move-result-object v13

    const-string v14, "gray_point"

    invoke-static {v13, v14}, Lcn/sharesdk/framework/utils/R;->getBitmapRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v11

    .line 168
    .local v11, "resId":I
    if-lez v11, :cond_77

    .line 169
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    invoke-static {v13, v11}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v13

    iput-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->grayPoint:Landroid/graphics/Bitmap;

    .line 171
    :cond_77
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getContext()Landroid/content/Context;

    move-result-object v13

    const-string v14, "white_point"

    invoke-static {v13, v14}, Lcn/sharesdk/framework/utils/R;->getBitmapRes(Landroid/content/Context;Ljava/lang/String;)I

    move-result v11

    .line 172
    if-lez v11, :cond_8d

    .line 173
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getResources()Landroid/content/res/Resources;

    move-result-object v13

    invoke-static {v13, v11}, Landroid/graphics/BitmapFactory;->decodeResource(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v13

    iput-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->whitePoint:Landroid/graphics/Bitmap;

    .line 175
    :cond_8d
    const/4 v5, 0x0

    .local v5, "i":I
    :goto_8e
    if-ge v5, v9, :cond_c8

    .line 176
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    new-instance v14, Landroid/widget/ImageView;

    invoke-direct {v14, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    aput-object v14, v13, v5

    .line 177
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    aget-object v13, v13, v5

    sget-object v14, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v13, v14}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 178
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    aget-object v13, v13, v5

    iget-object v14, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->grayPoint:Landroid/graphics/Bitmap;

    invoke-virtual {v13, v14}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 179
    new-instance v7, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v7, v4, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 180
    .local v7, "lpIv":Landroid/widget/LinearLayout$LayoutParams;
    const/4 v13, 0x0

    invoke-virtual {v7, v4, v4, v4, v13}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    .line 181
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    aget-object v13, v13, v5

    invoke-virtual {v13, v7}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 182
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    aget-object v13, v13, v5

    invoke-virtual {v6, v13}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    .line 175
    add-int/lit8 v5, v5, 0x1

    goto :goto_8e

    .line 159
    .end local v4    # "dp_5":I
    .end local v5    # "i":I
    .end local v7    # "lpIv":Landroid/widget/LinearLayout$LayoutParams;
    .end local v8    # "lpLl":Landroid/widget/LinearLayout$LayoutParams;
    .end local v11    # "resId":I
    :cond_c5
    const/16 v13, 0x8

    goto :goto_49

    .line 184
    .restart local v4    # "dp_5":I
    .restart local v5    # "i":I
    .restart local v8    # "lpLl":Landroid/widget/LinearLayout$LayoutParams;
    .restart local v11    # "resId":I
    :cond_c8
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-virtual {v13}, Lm/framework/ui/widget/viewpager/ViewPagerClassic;->getCurrentScreen()I

    move-result v2

    .line 185
    .local v2, "curPage":I
    iget-object v13, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->points:[Landroid/widget/ImageView;

    aget-object v13, v13, v2

    iget-object v14, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->whitePoint:Landroid/graphics/Bitmap;

    invoke-virtual {v13, v14}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    goto/16 :goto_30
.end method

.method public handleMessage(Landroid/os/Message;)Z
    .registers 3
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 128
    iget v0, p1, Landroid/os/Message;->what:I

    packed-switch v0, :pswitch_data_c

    .line 134
    :goto_5
    const/4 v0, 0x0

    return v0

    .line 130
    :pswitch_7
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->afterPlatformListGot()V

    goto :goto_5

    .line 128
    nop

    :pswitch_data_c
    .packed-switch 0x1
        :pswitch_7
    .end packed-switch
.end method

.method public onClick(Landroid/view/View;)V
    .registers 9
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 224
    invoke-virtual {p1}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcn/sharesdk/framework/Platform;

    .line 225
    .local v2, "plat":Lcn/sharesdk/framework/Platform;
    if-eqz v2, :cond_1f

    .line 226
    iget-object v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-virtual {v5}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getParams()Ljava/util/HashMap;

    move-result-object v3

    .line 228
    .local v3, "reqData":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    iget-boolean v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->silent:Z

    if-eqz v5, :cond_20

    .line 229
    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    .line 231
    .local v4, "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-virtual {v4, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 232
    iget-object v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-virtual {v5, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->share(Ljava/util/HashMap;)V

    .line 258
    .end local v3    # "reqData":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    .end local v4    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :cond_1f
    :goto_1f
    return-void

    .line 236
    .restart local v3    # "reqData":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_20
    invoke-virtual {v2}, Lcn/sharesdk/framework/Platform;->getName()Ljava/lang/String;

    move-result-object v0

    .line 237
    .local v0, "name":Ljava/lang/String;
    const-string v5, "platform"

    invoke-virtual {v3, v5, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 239
    instance-of v5, v2, Lcn/sharesdk/framework/CustomPlatform;

    if-nez v5, :cond_37

    .line 240
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->getContext()Landroid/content/Context;

    move-result-object v5

    invoke-static {v5, v0}, Lcn/sharesdk/onekeyshare/ShareCore;->isUseClientToShare(Landroid/content/Context;Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_45

    .line 241
    :cond_37
    new-instance v4, Ljava/util/HashMap;

    invoke-direct {v4}, Ljava/util/HashMap;-><init>()V

    .line 243
    .restart local v4    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    invoke-virtual {v4, v2, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 244
    iget-object v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-virtual {v5, v4}, Lcn/sharesdk/onekeyshare/OnekeyShare;->share(Ljava/util/HashMap;)V

    goto :goto_1f

    .line 249
    .end local v4    # "shareData":Ljava/util/HashMap;, "Ljava/util/HashMap<Lcn/sharesdk/framework/Platform;Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;>;"
    :cond_45
    new-instance v1, Lcn/sharesdk/onekeyshare/EditPage;

    invoke-direct {v1}, Lcn/sharesdk/onekeyshare/EditPage;-><init>()V

    .line 250
    .local v1, "page":Lcn/sharesdk/onekeyshare/EditPage;
    invoke-virtual {v1, v3}, Lcn/sharesdk/onekeyshare/EditPage;->setShareData(Ljava/util/HashMap;)V

    .line 251
    iget-object v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-virtual {v1, v5}, Lcn/sharesdk/onekeyshare/EditPage;->setParent(Lcn/sharesdk/onekeyshare/OnekeyShare;)V

    .line 252
    const-string v5, "true"

    const-string v6, "dialogMode"

    invoke-virtual {v3, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_67

    .line 253
    invoke-virtual {v1}, Lcn/sharesdk/onekeyshare/EditPage;->setDialogMode()V

    .line 255
    :cond_67
    iget-object v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-virtual {v5}, Lcn/sharesdk/onekeyshare/OnekeyShare;->getContext()Landroid/content/Context;

    move-result-object v5

    const/4 v6, 0x0

    invoke-virtual {v1, v5, v6}, Lcn/sharesdk/onekeyshare/EditPage;->show(Landroid/content/Context;Landroid/content/Intent;)V

    .line 256
    iget-object v5, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    invoke-virtual {v5}, Lcn/sharesdk/onekeyshare/OnekeyShare;->finish()V

    goto :goto_1f
.end method

.method public onConfigurationChanged()V
    .registers 5

    .prologue
    .line 190
    iget-object v2, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-virtual {v2}, Lm/framework/ui/widget/viewpager/ViewPagerClassic;->getCurrentScreen()I

    move-result v2

    iget v3, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->PAGE_SIZE:I

    mul-int v0, v2, v3

    .line 191
    .local v0, "curFirst":I
    invoke-direct {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->calPageSize()V

    .line 192
    iget v2, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->PAGE_SIZE:I

    div-int v1, v0, v2

    .line 194
    .local v1, "newPage":I
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcn/sharesdk/onekeyshare/PlatformGridView;->removeViewAt(I)V

    .line 195
    invoke-virtual {p0}, Lcn/sharesdk/onekeyshare/PlatformGridView;->afterPlatformListGot()V

    .line 197
    iget-object v2, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->pager:Lm/framework/ui/widget/viewpager/ViewPagerClassic;

    invoke-virtual {v2, v1}, Lm/framework/ui/widget/viewpager/ViewPagerClassic;->setCurrentScreen(I)V

    .line 198
    return-void
.end method

.method public setCustomerLogos(Ljava/util/ArrayList;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcn/sharesdk/onekeyshare/CustomerLogo;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 215
    .local p1, "customers":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcn/sharesdk/onekeyshare/CustomerLogo;>;"
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->customers:Ljava/util/ArrayList;

    .line 216
    return-void
.end method

.method public setHiddenPlatforms(Ljava/util/HashMap;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 210
    .local p1, "hiddenPlatforms":Ljava/util/HashMap;, "Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/String;>;"
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->hiddenPlatforms:Ljava/util/HashMap;

    .line 211
    return-void
.end method

.method public setParent(Lcn/sharesdk/onekeyshare/OnekeyShare;)V
    .registers 2
    .param p1, "parent"    # Lcn/sharesdk/onekeyshare/OnekeyShare;

    .prologue
    .line 220
    iput-object p1, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->parent:Lcn/sharesdk/onekeyshare/OnekeyShare;

    .line 221
    return-void
.end method

.method public setSilent(Z)V
    .registers 2
    .param p1, "silent"    # Z

    .prologue
    .line 206
    iput-boolean p1, p0, Lcn/sharesdk/onekeyshare/PlatformGridView;->silent:Z

    .line 207
    return-void
.end method
